﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day13.IRepository
{
    public class IDataRepository<T> where T : class
    {
        EFDBContext db;

        public IDataRepository(EFDBContext db)
        {
            this.db = db;
        }
        public IQueryable<T> GetAll()
        {
            var list = db.Set<T>();
            return list;
        }
    }
}
